import { Init } from 'src/common/entities/init.entity';
import { Entity, Column, PrimaryGeneratedColumn } from 'typeorm';

@Entity({
  comment: '商品分类表',
})
export class GoodsCategory extends Init {
  @PrimaryGeneratedColumn()
  id: number;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '分类名称',
  })
  nameadfads: string;

  @Column({
    type: 'varchar',
    length: 255,
    comment: '分类图标',
    default: 'http://117.72.16.70:2002/static/icon.png',
  })
  icon: string;
}
